//
//  PoiSearchViewController.h
//  FootPrint
//
//  Created by 秦 东方 on 4/10/13.
//  Copyright (c) 2013 alex tao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PoiFavViewController.h"
#import "NVFilterController.h"
#import "SearchMerchantParser.h"
#import "SearchMerchantParser2.h"
#import "NVPopoverView.h"
#import "POISelDelegate.h"
#import "FavMerchantParser.h"

@interface PoiSearchViewController : UIViewController <NVFilterControllerDelegate, SearchMerDelegate, SearchMerDelegate2, NVPopoverViewDelegate, UITableViewDelegate, UITableViewDataSource, UIActionSheetDelegate, FavMerchantDelegate, UITextFieldDelegate>{
    
    PoiOpenMode _mode;
    SearchMerchantParser* _parser;
    SearchMerchantParser2* _parser2;
    
    int _filterType;
    PBArray* _filterArray;
    UITableView* _tableView;
    int _showingIndex;
    
    NSString* _curCity;
    NSString* _curDistrict;
    NSString* _curCircle;
    int  _nextCur;
    BOOL _isEnd;
    
    NSMutableArray* _arrMer;
    int _curIndex;
    
    FavMerchantParser* _favParser;
    BOOL _needBack;
    BOOL _keyFilter;
    
    }

@property (assign, nonatomic) id<POISelDelegate>    selDelegate;
@property (retain, nonatomic) IBOutlet NVFilterController *filterController;

@property (retain, nonatomic) IBOutlet UITableView *tableViewMerchant;
@property (retain, nonatomic) IBOutlet UITableView *tableViewFilter;
@property (retain, nonatomic) IBOutlet UITextField *textFieldFilter;
- (IBAction)hideKeyBoard:(id)sender;

@property (retain, nonatomic)  MerchantPropertyResponseMessage* cityMsg;
@property (retain, nonatomic)  MerchantPropertyResponseMessage* districtMsg;
@property (retain, nonatomic)  MerchantPropertyResponseMessage* circleMsg;
@property (retain, nonatomic)  NSString* filterStr;
//@property (retain, nonatomic)  MerchantPropertyResponseMessage* currentMsg;

- (void)setMode:(PoiOpenMode)openMode;
- (void)textFieldDidChange:(UITextField*) textField;

@end
